<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('设备历史数据')" />
	<th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-device-detail" th:object="${device}">
			<input id="deviceId" name="deviceId" type="hidden" th:field="*{deviceId}"/>
		</form>
		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table"></table>
		</div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: jsonview-js" />
    <script th:inline="javascript">
		$(function() {
			var prefix = ctx + "system/device";
			var options = {
				url: prefix + "/dataList",
				sortName: "createTime",
				sortOrder: "desc",
				modalName: "设备历史数据",
				columns: [
					{
						field: 'deviceCode',
						title: '设备编号'
					},
					{
						field: 'deviceDataKey',
						title: '数据类型',
						sortable: true
					},
					{
						field: 'deviceDataValue',
						title: '数据值',
						sortable: true
					}]
			};
			$.table.init(options);
		});
    </script>
</body>
</html>
